From 769890a8cc86a7dbb1f01b4262d583bdecae7232 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 28 Jan 2009 16:46:26 +0000 Subject: [PATCH] Don't query unneeded rows on watchlist This probably doesn't need to use a LinkBatch at all -- it could just retrieve some extra info in the watchlist query. But we need a LinkBatch anyway for the user pages, so why not. By request of Domas. --- includes/specials/SpecialWatchlist.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 6075dd1925..0283cf07ca 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -323,6 +323,8 @@ function wfSpecialWatchlist( $par ) { $linkBatch->add( NS_USER, $userNameUnderscored ); } $linkBatch->add( NS_USER_TALK, $userNameUnderscored ); + + $linkBatch->add( $row->rc_namespace, $row->rc_title ); } $linkBatch->execute(); $dbr->dataSeek( $res, 0 ); -- 2.20.1